package com.briup.es.domain.dto;

import jakarta.validation.constraints.Pattern;
import lombok.Data;

@Data
public class UserUpdatePasswordDTO {
    @Pattern(regexp = "^[A-z0-9_]{3,10}$",message = "修改密码时必须携带原始密码")
    private String oldPassword;
    @Pattern(regexp = "^[A-z0-9_]{5,10}$",message = "新密码必须由5到10位的字母数字_组成")
    private String newPassword;
}
